package com.kgcx.common.client.organization;

import com.kgcx.common.client.organization.pojo.Driver;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "organization")
public interface DriverClient {
    @GetMapping("driver/getDriver")
    Driver getDriver(@RequestParam("kid") Long kid, @RequestParam("phone") String phone);

    @GetMapping("driver/getDriverList")
    List<Driver> getDriverList(@RequestParam("cityId") Integer cityId, @RequestParam("autoTypeId") Integer autoTypeId, @RequestParam("stateIn") String stateIn);
}
